<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
        <head><title>class SearchQuery in com.google.gdata</title>
        <meta http-equiv="content-type" content="text/html; charset=UTF8"></meta><meta content="scaladoc (version 2.7.1.r14655-b20080415113712)" name="generator"></meta><link href="../../../style.css" type="text/css" rel="stylesheet"></link><script type="text/javascript" src="../../../script.js"></script>
        </head>
        <body onload="init()">
        <table summary="" class="navigation">
        <tr>
          <td class="navigation-links" valign="top">
            <!-- <table><tr></tr></table> -->
          </td>
          <td align="right" valign="top" style="white-space:nowrap;" rowspan="2">
            <div class="doctitle-larger">GData Scala Client Library Documentation</div>
          </td>
        </tr>
        <tr><td></td></tr>
      </table>
        
      <div class="entity">
        <a href="../../../com/google/gdata$package.html" target="_self">com.google.gdata</a>
        <br></br>
        <span class="entity">class  SearchQuery</span>
      </div><hr></hr>
      <div class="source">
        [source: <a href="" class="com/google/gdata/SearchQuery"><code>com/google/gdata/SearchQuery.scala</code></a>]
      </div><hr></hr>
      <a name="SearchQuery"></a><dl>
      <dt>
        
        <code>sealed abstract</code>
        <code>class</code>
        <em>SearchQuery</em>
      </dt>
      <dd><code> extends </code><a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html" target="_self">AnyRef</a></dd>
    </dl>
      <dl><dd>Base class for Search queries. Supports 'or', 'and' and negation. Start with
 SearchQuery.empty which returns a query that matches all, and use the operators
 to build a more complex query.
 
 Example:
   SearchQuery.empty & "football" & !Text("soccer")
 
 It can be turned into a GData query by calling 'toQuery'.</dd></dl>
      <dl><dt style="margin:10px 0 0 20px;">
        <b>Author</b></dt><dd>Iulian Dragos</dd><dt style="margin:10px 0 0 20px;">
        <b>See Also</b></dt><dd><a href="../../../com/google/gdata/Query.html" target="_self">com.google.gdata.Query</a></dd></dl>
    <dl>
      <dt style="margin:10px 0 0 20px;"><b>Direct Known Subclasses:</b></dt>
      <dd><a href="../../../com/google/gdata/SAnd.html" target="_self">SAnd</a>, <a href="../../../com/google/gdata/SOr.html" target="_self">SOr</a>, <a href="../../../com/google/gdata/SNot.html" target="_self">SNot</a>, <a href="../../../com/google/gdata/Text.html" target="_self">Text</a>, <a href="../../../com/google/gdata/MatchAll$object.html" target="_self">MatchAll</a></dd>
      </dl><hr></hr>
      


<table summary="" cellpadding="3" class="member">
      <tr><td class="title" colspan="2">Method Summary</td></tr>
      <tr>
      <td class="modifiers" valign="top"> 
        <code> def</code>
      </td>
      <td class="signature">
        <em><a href="../../../com/google/gdata/SearchQuery.html#%26%28String%29" target="_self">&amp;</a></em>
        (<em>t</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>) : <a href="../../../com/google/gdata/SearchQuery.html" target="_self">SearchQuery</a>
        
        <div>Return a query that matches both the current query and the given string.
   If the string contains spaces, the query will match the exact string by 
   enclosing it in double quotes.</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code> def</code>
      </td>
      <td class="signature">
        <em><a href="../../../com/google/gdata/SearchQuery.html#%26%28com.google.gdata.SearchQuery%29" target="_self">&amp;</a></em>
        (<em>q</em> : <a href="../../../com/google/gdata/SearchQuery.html" target="_self">SearchQuery</a>) : <a href="../../../com/google/gdata/SearchQuery.html" target="_self">SearchQuery</a>
        
        <div>Return a query that matches both the current query and the given query.</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code> def</code>
      </td>
      <td class="signature">
        <em><a href="../../../com/google/gdata/SearchQuery.html#toQuery" target="_self">toQuery</a></em>
         : <a href="../../../com/google/gdata/Query.html" target="_self">Query</a>
        
        <div>Turn this search query into a full query.</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code>override def</code>
      </td>
      <td class="signature">
        <em><a href="../../../com/google/gdata/SearchQuery.html#toString%28%29" target="_self">toString</a></em>
         : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>
        
        
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code> def</code>
      </td>
      <td class="signature">
        <em><a href="../../../com/google/gdata/SearchQuery.html#unary_%21" target="_self">unary_!</a></em>
         : <a href="../../../com/google/gdata/SearchQuery.html" target="_self">SearchQuery</a>
        
        <div>Negate the current query.</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code> def</code>
      </td>
      <td class="signature">
        <em><a href="../../../com/google/gdata/SearchQuery.html#%7C%28String%29" target="_self">|</a></em>
        (<em>t</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>) : <a href="../../../com/google/gdata/SearchQuery.html" target="_self">SearchQuery</a>
        
        <div>Return a query that matches either the current query or the given string.
   If the string contains spaces, the query will match the exact string by 
   enclosing it in double quotes.</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code> def</code>
      </td>
      <td class="signature">
        <em><a href="../../../com/google/gdata/SearchQuery.html#%7C%28com.google.gdata.SearchQuery%29" target="_self">|</a></em>
        (<em>q</em> : <a href="../../../com/google/gdata/SearchQuery.html" target="_self">SearchQuery</a>) : <a href="../../../com/google/gdata/SearchQuery.html" target="_self">SearchQuery</a>
        
        <div>Return a query that matches either the current query or the given query.</div>
      </td>
    </tr>
      </table><table summary="" cellpadding="3" class="inherited">
        <tr><td class="title" colspan="2">
          Methods inherited from <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html" target="_self">AnyRef</a>
        </td></tr>
        <tr><td class="signature" colspan="2">
          <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#getClass%28%29" target="_self">getClass</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#hashCode%28%29" target="_self">hashCode</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#equals%28Any%29" target="_self">equals</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#clone%28%29" target="_self">clone</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#notify%28%29" target="_self">notify</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#notifyAll%28%29" target="_self">notifyAll</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#wait%28Long%29" target="_self">wait</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#wait%28Long%2CInt%29" target="_self">wait</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#wait%28%29" target="_self">wait</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#finalize%28%29" target="_self">finalize</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#%3D%3D%28AnyRef%29" target="_self">==</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#%21%3D%28AnyRef%29" target="_self">!=</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#eq%28AnyRef%29" target="_self">eq</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#ne%28AnyRef%29" target="_self">ne</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#synchronized%28T0%29" target="_self">synchronized</a>
        </td></tr>
      </table><table summary="" cellpadding="3" class="inherited">
        <tr><td class="title" colspan="2">
          Methods inherited from <a href="http://www.scala-lang.org/docu/files/api/scala/Any.html" target="_self">Any</a>
        </td></tr>
        <tr><td class="signature" colspan="2">
          <a href="http://www.scala-lang.org/docu/files/api/scala/Any.html#%3D%3D%28Any%29" target="_self">==</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/Any.html#%21%3D%28Any%29" target="_self">!=</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/Any.html#isInstanceOf" target="_self">isInstanceOf</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/Any.html#asInstanceOf" target="_self">asInstanceOf</a>
        </td></tr>
      </table>


      


<table summary="" cellpadding="3" class="member-detail">
          <tr><td class="title">Method Details</td></tr>
        </table><div><a name="toQuery"></a><dl>
      <dt>
        
        <code></code>
        <code>def</code>
        <em>toQuery</em> : <a href="../../../com/google/gdata/Query.html" target="_self">Query</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Turn this search query into a full query.</dd></dl>
      <dl></dl>
    <hr></hr>
<a name="%26%28com.google.gdata.SearchQuery%29"></a><dl>
      <dt>
        
        <code></code>
        <code>def</code>
        <em>&amp;</em>(<em>q</em> : <a href="../../../com/google/gdata/SearchQuery.html" target="_self">SearchQuery</a>) : <a href="../../../com/google/gdata/SearchQuery.html" target="_self">SearchQuery</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Return a query that matches both the current query and the given query.</dd></dl>
      <dl></dl>
    <hr></hr>
<a name="%26%28String%29"></a><dl>
      <dt>
        
        <code></code>
        <code>def</code>
        <em>&amp;</em>(<em>t</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>) : <a href="../../../com/google/gdata/SearchQuery.html" target="_self">SearchQuery</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Return a query that matches both the current query and the given string.
   If the string contains spaces, the query will match the exact string by 
   enclosing it in double quotes.</dd></dl>
      <dl></dl>
    <hr></hr>
<a name="%7C%28com.google.gdata.SearchQuery%29"></a><dl>
      <dt>
        
        <code></code>
        <code>def</code>
        <em>|</em>(<em>q</em> : <a href="../../../com/google/gdata/SearchQuery.html" target="_self">SearchQuery</a>) : <a href="../../../com/google/gdata/SearchQuery.html" target="_self">SearchQuery</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Return a query that matches either the current query or the given query.</dd></dl>
      <dl></dl>
    <hr></hr>
<a name="%7C%28String%29"></a><dl>
      <dt>
        
        <code></code>
        <code>def</code>
        <em>|</em>(<em>t</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>) : <a href="../../../com/google/gdata/SearchQuery.html" target="_self">SearchQuery</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Return a query that matches either the current query or the given string.
   If the string contains spaces, the query will match the exact string by 
   enclosing it in double quotes.</dd></dl>
      <dl></dl>
    <hr></hr>
<a name="unary_%21"></a><dl>
      <dt>
        
        <code></code>
        <code>def</code>
        <em>unary_!</em> : <a href="../../../com/google/gdata/SearchQuery.html" target="_self">SearchQuery</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Negate the current query.</dd></dl>
      <dl></dl>
    <hr></hr>
<a name="toString%28%29"></a><dl>
      <dt>
        
        <code>override</code>
        <code>def</code>
        <em>toString</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>
      </dt>
      <dd></dd>
    </dl><hr></hr></div>


    <hr></hr>
        <table summary="" class="navigation">
        <tr>
          <td class="navigation-links" valign="top">
            <!-- <table><tr></tr></table> -->
          </td>
          <td align="right" valign="top" style="white-space:nowrap;" rowspan="2">
            <div class="doctitle-larger">GData Scala Client Library Documentation</div>
          </td>
        </tr>
        <tr><td></td></tr>
      </table>
      </body>
      </html>